{% extends 'base.html' %}
{% block refresh %}
{% if norefresh %}
{% else %}
	<meta http-equiv="refresh" content="60">
{% endif %}
{% endblock refresh %}
{% block body %}

<!-- matches the "SAFE" user and does not display the warning -->
{% if not user == 'apiro' %}
	<div class="container-red">
		WARNING: You are a Priviledged user. Pools can be changed! Excercise caution!
	</div>
	<div class="spacer-1px"></div>
{% endif %}

{% if errors %}
	<div class="container-red">
		{{ errors }}
	</div>
	<div class="spacer-1px"></div>
{% endif %}

<div class="container">
	<div class="spacer"></div>
	<div class="headings">
		<p style="width: 111px">Pool</p><p style="width: 180px">Host</p><p>Port</p><p>Session</p><p>Monitor</p><p></p><p></p>
	</div>
	<div class="spacer"></div>
	{% for out in output %}
		<div class="member-{% cycle 'white' 'black' %}">
			<p style="width: 111px"><a href="/lbswitch/status/{{partition}}/{{ out.0 }}">{{ out.0 }}</a></p>
			<p style="width: 180px">{{ out.1 }}</p>
			<p>{{ out.3 }}</p>
			<p><img src=/lbmanager/media/{{out.2}}.jpg width=16px title={{out.2}}>{{ out.6 }}</p>
			<p><img src=/lbmanager/media/{{ out.4 }}.jpg width=16px title={{ out.4}}></p>
			<p><a href="/lbswitch/enable/{{partition}}/{{out.0}}/none/{{out.5}}:{{out.3}}">Disable</a></p>
			<p><a href="/lbswitch/enable/{{partition}}/{{out.0}}/{{out.5}}:{{out.3}}/none">Enable</a></p>
		</div>
	<div class="spacer"></div>
	{% endfor %}
</div>
{% endblock body %}
